package com.itheima.service;

import com.itheima.dao.Userdao;
import com.itheima.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private Userdao userdao;
    public List<User> findAll(){
        return userdao.findAll();

    }
}
